<li>
    <h2><? __('Categories'); ?></h2>
    <?
    $categories = $this->requestAction('/categories/sidebox');
    if(!empty($categories)) { ?>
    <ul>
            <? foreach ($categories as $category): ?>
            <li><? echo $html -> link($category['Category']['name'],'/categories/view/'.$category['Category']['seo_link']); ?> (<? echo count($category['Article']); ?>)</li>
            <? endforeach; ?>
    </ul>
    <? } else { ?>
    <? __('No categories'); ?>
    <? } ?>
</li>